package org.huzhp.service;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Description: 网关配置类
 * @Author: huzp
 * @CreateDate: 2020/4/3 10:16
 * @Version: 1.0
 */
@Component
@PropertySource(value = "classpath:config/gateway.properties")
@ConfigurationProperties(ignoreUnknownFields = false, prefix = "gateway")
public class GatewayProperties {

    private String server;

    private Api api;

    public static class Api {

        private String findUserByCode;

        public String getFindUserByCode() {
            return findUserByCode;
        }

        public void setFindUserByCode(String findUserByCode) {
            this.findUserByCode = findUserByCode;
        }
    }

    public String getServer() {
        return server;
    }

    public void setServer(String server) {
        this.server = server;
    }

    public Api getApi() {
        return api;
    }

    public void setApi(Api api) {
        this.api = api;
    }
}
